﻿/*
*┌─────────────────────────────────┐
*│　描   述：引导玩家给予五星好评
*│　类   名：RateMe.cs 
*│　创  建  人：DD
*│　创建时间：
*│　Copyright(C) 2020 by DD
*└─────────────────────────────────┘
*┌─────────────────────────────────┐
*│　修  改  人：
*│　创建日期：
*└─────────────────────────────────┘
*/

using UnityEngine;

namespace DD{
	public class RateMe : MonoBehaviour
	{
		private GameObject RateUSCanvas;
        private Animator anim;

       
        private void Awake( )
        {
            RateUSCanvas = this.gameObject;
            anim = this.GetComponent<Animator> ();
        }

        public void Close( )
        {
            anim.SetBool ( "Close" , true );
        }

		public void FiveClick( )
        {
            Application.OpenURL ( "https://play.google.com/store/apps/details?id=com.ml.number.shooter.merge.coin" );
            anim.SetBool ( "Close" , true );
        }

        public void Destroy( )
        {
            RateUSCanvas.SetActive ( false );
        }
	}
}